#ifndef WORLDOBJECTS_H_
#define WORLDOBJECTS_H_

#include "SDL.h"
#include "SDL_mutex.h"

#include <pspkernel.h>
#include <pspdebug.h>
//#include <callbacks.h>

#define TRIANGLE_WIDTH 40
#define TRIANGLE_HEIGHT 40
#define PLAYERS 10
#define NBFLAGS 10



#define TRUE 1
#define FALSE 0

//char buffer2[(PLAYERS-1)*14 + 5 + NBFLAGS*10];
SDL_mutex *buff2_mut;
SceUID thid;
SceUID thid2;
typedef struct Flags
{
	int posX;
	int posY;
	SDL_Surface *source;
}FLAGS;

typedef struct Player
{
	char *name;
	int posX;
	int posY;
	int viewAngle;
	int nbFlags;
	int totalFlags;
	FLAGS *flags;
	int died;
	int killed;
	SDL_Surface *source;
}PLAYER;

// All players connected to the server
PLAYER *player; 


#endif /*WORLDOBJECTS_H_*/
